﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    Inherits="SouthernLand.RaoVat.TinDaLuu" CodeBehind="TinDaLuu.aspx.cs" %>

<%@ Register TagPrefix="southern" Namespace="SouthernLand.Common.Untilities" Assembly="SouthernLand" %>
<%@ Import Namespace="SouthernLand.Common.BOL.NhaDat" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" runat="Server">
    <asp:UpdatePanel ID="UpdatePanelDangtin" runat="server">
        <ContentTemplate>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
                <tr>
                    <td class="list-real-estate-frame-top-left">
                        &nbsp;
                    </td>
                    <td align="left" class="list-real-estate-frame-top width-98-5-pct">
                        <span class="Frame_Title">&nbsp;&nbsp;<asp:Label runat="server" ID="lblTitle"></asp:Label></span>
                    </td>
                    <td class="list-real-estate-frame-top-right">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="list-real-estate-frame-mid-left">
                    </td>
                    <td class="width-98-5-pct">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <asp:Panel runat="server" ID="PanelMsg" Visible="false">
                                        <div style="padding: 20px;" class="Raovat_Tieude" align="center">
                                            <asp:Label runat="server" ID="lblMsg"></asp:Label></div>
                                    </asp:Panel>
                                    <asp:Repeater runat="server" ID="rptRaovat">
                                        <ItemTemplate>
                                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td colspan="4" height="5px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" class="preview-photos-house-box">
                                                        <div class="padding-top-8">
                                                            <asp:HyperLink ID="hplImageView" runat="server">
                                                                <asp:Image ID="imgReal" runat="server" CssClass="BorderImage" />
                                                            </asp:HyperLink>
                                                            <span class="luotxem">Lượt xem:
                                                                <asp:Label ID="lblTotalViews" runat="server" CssClass="number-total-views"></asp:Label></span>
                                                        </div>
                                                    </td>
                                                    <td width="315px" valign="top" class="padding-5" align="left">
                                                        <table width="100%" border="0" cellpadding="5" cellspacing="0">
                                                            <tr>
                                                                <td align="left">
                                                                    <asp:HyperLink ID="hplRealEstateTitle" runat="server" CssClass="Raovat_Tieude"></asp:HyperLink>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <b>Vị trí :</b>&nbsp;
                                                                    <%#TinhThanh.GetTenTinhThanhByID(ConvertUtility.ToInt32(Eval("TinhThanh")))%>
                                                                    -
                                                                    <%#QuanHuyen.GetTenQuanHuyenByID(ConvertUtility.ToInt32(Eval("QuanHuyen")))%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td valign="top">
                                                                    <%# Eval("Mota").ToString().PadRight(128, ' ').Substring(0, 128)%>...
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td valign="top" class="line-y">
                                                    </td>
                                                    <td style="padding: 5px;" valign="top">
                                                        <table width="100%" border="0" cellpadding="5" cellspacing="0">
                                                            <tr>
                                                                <td align="left">
                                                                    <b>Giá :</b>&nbsp; <span style="color: #ff5d2b; font-weight: bold">
                                                                        <%# Globals.Gia((Decimal)Eval("Gia"), ConvertUtility.ToInt32(Eval("DonVT")),Convert.ToString(Eval("GiaTren")))%>
                                                                    </span>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left">
                                                                    <b>Diện tích đất :
                                                                        <%# Eval("DientichDat")%></b>
                                                                    <%=Globals.MetVuong()%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left">
                                                                    <b>Ngày :</b>
                                                                    <%# Formatter.FormatDateTime(Convert.ToDateTime(Eval("AddedDate")))%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" valign="bottom">
                                                                    <table border="0">
                                                                        <tr>
                                                                            <td>
                                                                                <a title="cssbody=[dvbdy1] cssheader=[dvhdr1] header=[Xóa tin này] body=[Click chuột vào chức năng này nếu bạn muốn loại bỏ tin ra khỏi Danh sách Tin Đã Lưu.]"
                                                                                    href="<%=Globals.ApplicationPath %>Raovat/TinDaLuu.aspx?RaovatID=<%# Eval("RaovatID")%>&Action=Delete"
                                                                                    onclick="return confirm('Bạn chắc chắn xóa tin rao này ?')">
                                                                                    <img border="0" src="<%=Globals.ImagesUrl() %>delete.gif" /></a>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4" height="5px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4" class="list-real-estate-menu-left-line">
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" style="padding-top: 20px; padding-bottom: 20px;">
                                    <div align="center">
                                        <asp:Panel ID="DisplayPager" Visible="True" runat="server">
                                            <div align="center">
                                                <table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
                                                    <tr>
                                                        <td valign="middle" align="center">
                                                            <southern:Pager ID="Pager" runat="server" CssClass="LinkButton" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td valign="middle" align="center" style="padding-top: 15px;">
                                                            <southern:CurrentPage ID="CurrentPage" runat="server" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td class="list-real-estate-frame-mid-right">
                    </td>
                </tr>
                <tr>
                    <td class="list-real-estate-frame-bot-left">
                    </td>
                    <td align="center" class="list-real-estate-frame-bot-center">
                    </td>
                    <td class="list-real-estate-frame-bot-right">
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
